<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<ui:repeat var="wagon" value="#{rail.lstWagons}">
		<div id="w_#{rail.id}_#{wagon.id}"
			style="text-align:center;background-color: #{wagon.hexColor}"
			onmouseover="dw('#{wagon.extId}',
			'#{wagon.currentStatus.label}','#{wagon.fromRail}'
			,'#{wagon.tcmsTrainId}','#{wagon.sillonExtId}','#{wagon.riv}',#{wagon.type.trailer}
			,'#{wagon.fuelLevel}','#{wagon.ate}');"
			onmouseout="dw_c();" class="wagon_#{wagon.currentPos.posReal}">

			<!-- Pour un wagon recherché. -->
			<h:outputText id="f_#{rail.id}_#{wagon.id}" value="O"
				style="font-weight:bold;font-size:16px;"
				rendered="#{wagon.inquired}" />

			<!-- Pour un wagon réformé. -->
			<h:outputText id="r_#{rail.id}_#{wagon.id}" value="R"
				style="font-weight:bold;font-size:16px;"
				rendered="#{wagon.currentStatus.id == 5 
				|| wagon.currentStatus.id == 6 
				|| wagon.currentStatus.id == 7 
				|| wagon.currentStatus.id == 8
				|| wagon.currentStatus.id == 9
				|| wagon.currentStatus.id == 10}" />

			<!-- Pour une locomotive . -->
			<h:outputText id="l_#{rail.id}_#{wagon.id}" value="L"
				style="font-weight:bold;font-size:16px;"
				rendered="#{!wagon.type.trailer}" />

			<!-- Pour une locomotive ECR. -->
			<h:outputText id="l_ecr#{rail.id}_#{wagon.id}" value="#{wagon.owner}"
				style="font-weight:bold;font-size:8px;"
				rendered="#{!wagon.type.trailer}">
				<f:converter converterId="locoDisplayOwnerConverter" />
			</h:outputText>
		</div>
	</ui:repeat>
</ui:composition>
</html>